.content {
  padding: 20px 50px;
  font-size: 14px;
  width: 90%;
  margin: 0 auto;
}

.content h1 {
  font-size: 20px;
  letter-spacing: 0.1em;
  cursor: pointer;
  margin-right: 50px;
}

.content p {
  font-family: 'Avenir', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: justify;
  color: #2c3e50;
  line-height: 1.5;
}

.content .menu {
  display: flex;
  border-bottom: 3px solid black;
  margin-bottom: 20px;
}
.news-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.news {
  width: calc(48% - 40px);
  padding: 20px;
  display: flex;
  justify-content: space-between;
  margin-bottom: 30px;
  border: solid #ccc 2px;
  position: relative;
  animation: floatUp 1s ease-in-out;
}

.news img {
  width: 50%;
  height: 95%;
  object-fit: cover;
}

.news:hover {
  color: #007AFF;
  cursor: pointer;
  border: solid #007AFF 2px;
}

.news .go {
  position: absolute;
  bottom: 8px;
  font-size: 24px;
  font-weight: bold;
  right: 50%;
}

.news-item {
  width: 45%;
  height: 20em;
}

.news .title {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 10px;
}

.news .time {
  color: #555;
  margin: 10px 0;
}

.news .text {
  line-height: 1.5;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
  color: #555;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
  overflow: hidden;
}


@keyframes floatUp {
  from {
    transform: translateY(100px);
  }

  to {
    transform: translateY(0);
  }
}

@media screen and (max-width: 768px) {
  .content {
    padding: 10px;
    font-size: 12px;
  }

  .news {
    width: calc(100% - 40px);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    border: solid #ccc 2px;
    position: relative;
    animation: floatUp 1s ease-in-out;
    font-size: 14px;
  }

  .news-item {
    width: 45%;
    height: 10em;
    overflow: hidden;
  }

  .news .text {
    line-height: 1.5;
    letter-spacing: 0.1em;
    margin-bottom: 10px;
    color: #555;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
  }
}

/* 超小屏幕（手机） */
@media screen and (max-width: 420px) {
  .news .text {
    visibility: hidden;
  }
}